<?php

class User_Form_Admincp_Manage_Edit extends Nuo_Form
{
	function init()
	{
		$this->isAsync();
		
		$this -> setTitle('Edit Member');

		$this -> addChild('text', 'full_name', array('label' => 'Username'));

		$this -> addChild('text', 'username', array('label' => 'Username'));

		$this -> addChild('email', 'email', array('label' => 'Email'));

		$this -> addChild('radio', 'gender_id', array(
			'label' => 'Gender',
			'multiOptions' => Nuo::getTable('user/gender') -> getMultiOptions()
		));
		
		$this -> addChild('select', 'role_id', array(
			'label' => 'Level',
			'multiOptions' => Nuo::getTable('permission/role') -> getMultiOptions()
		));
		
		$this -> addChild('yesno', 'is_verified', array(
			'label' => 'Verified',
		));
		
		$this -> addChild('yesno', 'is_approved', array(
			'label' => 'Approved',
		));
		
		$this -> addChild('yesno', 'is_enabled', array(
			'label' => 'Enabled',
		));
		
		$this -> addChild('yesno', 'is_featured', array(
			'label' => 'Featured',
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');

	}

}
